package com.platform.cdcs.model;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * Created by holytang on 2017/11/16.
 */
public class PriceItem implements Serializable {


    private String cusName;
    private String cusCode;
    private String price;
    private String inUom;
    private String itemCode;
    private String uomPrice;
    private boolean choose;
    private String uom;
    private String inno;
    private String createTime;
    private String rate;
    private String distCode;

    public String getDistCode() {
        return distCode;
    }

    public String getRate() {
        if (rate == null) {
            return "";
        }
        return rate;
    }

    public boolean isChoose() {
        return choose;
    }

    public void setChoose(boolean choose) {
        this.choose = choose;
    }

    public String getInUom() {
        return inUom;
    }

    public void setInUom(String inUom) {
        this.inUom = inUom;
    }

    public String getUomPrice() {
        if (TextUtils.isEmpty(uomPrice)) {
            return rate;
        }
        return uomPrice;
    }

    public void setUomPrice(String uomPrice) {
        this.uomPrice = uomPrice;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getUom() {
        return uom;
    }

    public void setUom(String uom) {
        this.uom = uom;
    }

    public String getInno() {
        return inno;
    }

    public void setInno(String inno) {
        this.inno = inno;
    }

    public String getPrice() {
        if (TextUtils.isEmpty(price)) {
            price = "0.0";
        }
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCusName() {
        return cusName;
    }

    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    public String getCusCode() {
        return cusCode;
    }

    public void setCusCode(String cusCode) {
        this.cusCode = cusCode;
    }


    public static class PriceList extends MockObj {
        private List<PriceItem> priceList;
        private List<PriceItem> invoicePriceList;

        public List<PriceItem> getPriceList() {
            return priceList;
        }

        public void setPriceList(List<PriceItem> priceList) {
            this.priceList = priceList;
        }

        public List<PriceItem> getInvoicePriceList() {
            return invoicePriceList;
        }

        public void setInvoicePriceList(List<PriceItem> invoicePriceList) {
            this.invoicePriceList = invoicePriceList;
        }
    }


}
